package com.woshua.iconfontmodel;

import android.graphics.Color;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        TextView icon_text=findViewById(R.id.icon_text);
        icon_text.setTextSize(48);
        icon_text.setTextColor(Color.BLUE);

        TextView icon_other=findViewById(R.id.icon_other);
        icon_other.setText("\ue66d");
    }

    /**
     * ScrollView 滚动
     *
     * //todo 设置默认滚动到顶部
     * scrollView.post(new Runnable() {
     * @Override
     * public void run() {
     * // TODO Auto-generated method stub
     *     scrollView.fullScroll(ScrollView.FOCUS_UP);
     *  }
     * });
     *
     * //todo 设置默认滚动到底部
     *  scrollView.post(new Runnable() {
     *  @Override
     *  public void run() {
     *  // TODO Auto-generated method stub
     *        scrollView.fullScroll(ScrollView.FOCUS_DOWN);
     *  }
     * });
     * */
}
